package com.cheng.channelview;

import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.utils.net.Uri;

import java.io.File;

public class CustomChannelAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_custom_channel);
        findComponentById(ResourceTable.Id_text_helloworld).setClickedListener(v -> {

            Intent share = new Intent();
            share.setAction("android.intent.action.SEND");
            share.setParam("android.intent.extra.SUBJECT", "11111");
            share.setParam("android.intent.extra.TEXT", "3333333333");
            share.setType("text/plain");
            startAbility(share);


        });
    }
}
